]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
unlockDialog: Blur background
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Tue, 7 Jan 2020 19:43:35 +0000 (16:43 -0300)
committerFlorian Müllner <florian.muellner@gmail.com>
Mon, 10 Feb 2020 22:30:51 +0000 (22:30 +0000)
Add a 200px blur with a 55% brightness to the unlock dialog
background.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/872

js/ui/unlockDialog.js

index d853a93b61300ce7e8fcd66d71f95fe7a8e013ff..ff2787ac4db27b1838f44545f59bf083c8c9b95a 100644 (file)
@@ -16,6 +16,9 @@ const IDLE_TIMEOUT = 2 * 60;
 
 const SCREENSAVER_SCHEMA = 'org.gnome.desktop.screensaver';
 
+const BLUR_BRIGHTNESS = 0.55;
+const BLUR_RADIUS = 200;
+
 const SUMMARY_ICON_SIZE = 48;
 
 var NotificationsBox = GObject.registerClass({
@@ -426,6 +429,11 @@ var UnlockDialog = GObject.registerClass({
         this._bgManagers.push(bgManager);
 
         this._backgroundGroup.add_child(widget);
+
+        widget.add_effect(new Shell.BlurEffect({
+            brightness: BLUR_BRIGHTNESS,
+            blur_radius: BLUR_RADIUS,
+        }));
     }
 
     _updateBackgrounds() {